package com.kaifamiao.demo.d0801.factory;

public class Test02 {

    public static void main(String[] args) {
        HumanMethodFactory factory = new BlackHumanFactory();

//        Human human = factory.createHuman();
        Human1 man = factory.createMan();
        Human1 woman = factory.createWoman();

        man.printColor();
        woman.printColor();



//        factory = new ChineseFactory();
//
//        human = factory.createHuman();
//
//        human.printColor();
    }
}
